/* 主题 */
body {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-y: scroll;
}

/* 侧边栏 */
.sidebar-content {
    position: fixed;
    left: 50px;
}

/* 上半部分面板 */
.sidebar-content .layui-card {
    width: 210px;
    background-color: transparent;
    margin-bottom: 130px;
}

.sidebar-content .layui-card .layui-card-header {
    padding: 40px 0 0 0;
    height: auto;
    line-height: 20px;
    text-align: center;
    border-bottom: 1px dashed #5e5d5d;
}

.sidebar-content .layui-card .layui-card-header img {
    border-radius: 50%;
    height: 100px;
    width: 100px;
}

.sidebar-content .layui-card .layui-card-header span {
    font-size: 16px;
    color: #5e5f5e;
    cursor: default;
}

.sidebar-content .layui-card .layui-card-header .layui-card-header-title {
    font-size: 24px;
}

.sidebar-content .layui-card .layui-card-body {
    padding: 20px;
}

.sidebar-content .layui-card .layui-card-body ul {
    position: relative;
}

.sidebar-content .layui-card .layui-card-body li {
    line-height: 21px;
    text-align: center;
    font-size: 14px;
    color: #bcbcbc;
}

.sidebar-content .layui-card .layui-card-body li.txt {
    position: absolute;
    top: 0;
    left: 10%;
}

.sidebar-content .layui-card .layui-card-body li.visitors {
    position: absolute;
    top: 0;
    right: 10%;
}

/* 下半部分菜单 */
.sidebar-content .layui-nav {
    background-color: transparent;
    width: 100%;
}

.sidebar-content .layui-nav a {
    padding: 0;
    display: inline-block;
}

.sidebar-content .layui-nav .layui-nav-bar {
    display: none;
}

.sidebar-content .layui-nav .layui-nav-item {
    text-align: center;
    line-height: 26px;
    display: block;
    margin-bottom: 40px;
}

.sidebar-content .layui-nav .layui-nav-item a:hover {
    color: rgba(255, 255, 255, .7);
}

.sidebar-content .layui-nav .layui-this a:hover,
.sidebar-content .layui-nav .layui-this a {
    color: #dda354;
}

.sidebar-content .layui-nav .layui-this:after {
    height: 0;
}

/* 右侧 */
.right-content {
    width: 18%;
    position: fixed;
    right: 20px;
    top: 206px;
    box-sizing: border-box;
    padding: 20px;
    background: #141412;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.right-content .layui-btn {
    height: 30px;
    line-height: 30px;
    padding: 0 5px;
}

.right-content a {
    color: #FFFFFF;
}

.right-content .layui-field-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.right-content .layui-progress {
    margin-left: 30px;
    margin-bottom: 24px;
}

.right-content .layui-progress:last-child {
    margin-bottom: 0;
}

.right-content .layui-progress em {
    position: absolute;
    left: -30px;
    font-style: normal;
}

.right-content #toc-container {
    padding: 0;
}

.right-content #toc-container ul {
    margin-bottom: 0;
}

.right-content #toc-container ul li {
    list-style: revert;
}

.right-content img {
    width: 100%;
}

/* 搜索框 */
.search {
    text-align: center;
}

.search .layui-form {
    display: inline-block;
    width: 480px;
    box-sizing: border-box;
}

.search .layui-input-block {
    margin-left: 0;
    position: relative;
}

.search .layui-input-block .layui-btn {
    position: absolute;
    right: 1px;
    background-color: transparent;
}

.search .layui-input-block .layui-btn i {
    color: #d1aa56;
}

.search .layui-input-block .layui-btn:hover {
    opacity: 01;
}

.search .layui-input-block input::-webkit-input-placeholder {
    color: #d1aa56;
}

.search .layui-input-block input::-ms-input-placeholder {
    color: #d1aa56;
}

.search .layui-input-block .layui-input {
    background: rgba(0, 0, 0, 0.5);
    color: #d1aa56;
    border: 1px solid #242320;
    padding-right: 57px;
}

.search .layui-input-block .layui-input:hover,
.search .layui-input-block .layui-input:focus {
    border-color: #242320 !important;
}

/* 备案 */
.bei-an {
    text-align: center;
    line-height: 24px;
}


/* 中间 */
.main {
    width: 60%;
    height: 100%;
    padding-top: 206px;
    margin-left: 18%;
    color: #FFFFFF;
}

.main a {
    color: #FFFFFF;
}

.main .item {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    margin-bottom: 30px;
}

.main .item p.time span {
    font-size: 17px;
}

.main .item .item_title {
    font-size: 28px;
    font-weight: bold;
}

.main .item .subtitle {
    display: inline-block;
    width: auto;
    height: 20px;
    text-align: center;
    line-height: 20px;
    background: #a58c56;
    margin: 10px 0;
    padding: 1px 4px;
}

.main .item p.detail {
    word-break: break-word;
}

.main .item p.praise span {
    color: #d1aa56;
}

.main .item p.praise i {
    font-size: 20px;
    position: relative;
    top: 3px;
    margin-right: 6px;
    color: #FFFFFF;
}

.main .item p.detail {
    margin-top: 3px;
}

#pageButton {
    text-align: center;
}

#pageButton a,
#pageButton span {
    background: #000;
    color: #FFFFFF;
    margin-right: 10px;
    border: 1px solid #535655;
}

#pageButton .layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: #a58f59;
}

/* 主页模块 */
.index {
    padding-top: 53px;
}

.index .search {
    margin-bottom: 54px;
}

/* 文章模块 */
.article {
    padding-top: 53px;
}

.article .search {
    margin-bottom: 100px;
}

/* 关于 */

.about {
    padding-top: 145px;
}

.about .layui-tab-brief > .layui-tab-title .layui-this {
    color: #cca455;
}

.about .layui-tab-brief > .layui-tab-title .layui-this:after {
    border-color: #d1aa55;
}

.about .layui-tab-title {
    border-color: #6a6a67;
}

.about .layui-tab-title li {
    color: #cca455;
}

.about .title {
    font-weight: bold;
    font-size: 18px;
    color: #ab8560;
    padding-top: 10px;
    padding-bottom: 10px;
}

.about .title:first-child {
    padding-top: 0;
}

.about p {
    line-height: 36px;
    font-size: 16px;
    color: #d9dbda;
}

.me .item p.qq-number {
    line-height: 22px;
    color: #FFF;
}

.me .item img.code {
    height: 140px;
    width: 140px;
}

.about .item h3 {
    padding-top: 0;
    padding-bottom: 0;
}

.history .item h3 {
    font-size: 18px;
}

.history .layui-timeline-content ul li {
    color: white;
}

.history .layui-timeline-content .layui-timeline-title {
    color: white;
}

.links .item {
    padding: 20px 50px;
}

.links .item .date-box {
    width: 76px;
    height: 76px;
    border: 2px solid #9f7e39;
    position: absolute;
    top: 20px;
    left: -39px;
}

.links .item .date-box .date {
    height: 80px;
    width: 80px;
    background: #000;
    color: #bcbcbc;
    position: absolute;
    top: 5px;
    left: -10px;
    text-align: center;
}

.links .item .date-box .date img {
    width: 80px;
    height: 80px;
}

/* 文章详细 */
.detail #editormdDiv {
    margin-bottom: 10px;
}

.detail .markdown-body li {
    list-style: inherit;
}

/* 评论框 */

.message {
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 40px;
    position: relative;
}

.message .layui-card {
    background: transparent;
}

.message .layui-card .layui-card-header {
    border-bottom-color: #666465;
    padding: 16px 50px 27px 50px;
    height: auto;
}

.message .layui-card .layui-card-header .layui-form-item,
.message .layui-card .layui-card-header .layui-input-block {
    margin: 0;
}

.message .layui-card .layui-card-header .nicknameDiv {
    color: #FFFFFF;
}

.message .layui-card .layui-card-header .nicknameDiv .nickname {
    color: #d0aa55;
}

.message .layui-card .layui-card-header .layui-textarea {
    margin-bottom: 14px;
}

.message .layui-card .layui-card-header .btn-box {
    text-align: right;
}

.message .layui-card .layui-card-header button {
    background-color: #d0aa55;
}

.message .layui-card .layui-card-body {
    padding: 16px 50px;
    color: #d8d8d8;
}

.message .layui-card .layui-card-body .title .count {
    color: #b3924d;
}

.message .layui-card .layui-card-body .list-item li {
    padding: 15px 0;
    border-bottom: 1px dashed #5e5d5d;
    table-layout: fixed;
    word-break: break-all;
    overflow: hidden;
}

.message .layui-card .layui-card-body .list-item .user-nick {
    margin-bottom: 5px;
}

.message .layui-card .layui-card-body .list-item .user-nick .name {
    color: #b29547;
}

.message .layui-card .layui-card-body .list-item .user-nick .time {
    float: right;
}

.message .layui-card .layui-card-body .list-item .list-content {
    white-space: pre-line;
}

.message .layui-card .layui-card-body .list-item .list-content .revert {
    float: right;
    cursor: pointer;
}

/* 小分辨率分辨率 */
@media screen and (max-width: 1500px) {
    .main {
        width: 43%;
        margin-left: 25%;
    }

    .right-content {
        width: 23%;
        right: 3%;
    }
}

/* 最小分辨率 */
@media screen and (max-width: 1100px) {
    .sidebar-content {
        position: relative;
        left: 0;
    }

    .sidebar-content .layui-card {
        margin: 0 auto;
    }

    .sidebar-content .layui-nav {
        text-align: center;
        margin: 20px 0;
    }

    .sidebar-content .layui-nav .layui-nav-item {
        display: inline;
    }

    .sidebar-content .layui-nav a {
        margin: 0 10px;
    }

    .main {
        margin: 0 auto;
        width: 80%;
        padding-top: 0;
    }

    .right-content {
        width: 80%;
        margin: 0 auto 30px;
        position: relative;
        right: 0;
        top: 0;
    }

    .main .search {
        margin-bottom: 0;
    }
}
